<template>
	<view >
		<u-modal :show="show" :title="title" :showCancelButton="true" @confirm="confirm" @cancel="cancel">
			<view class="slot-content">
				<textarea v-model="value" placeholder="请输入内容" class="testAuto"></textarea>
			</view>
		</u-modal>
	</view>
</template>

<script>
export default {
	data() {
		return {
			title:'您是否要拒绝该订单？',
			value:``
		};
	},
	props:{
		show:{
			type:Boolean,
			requires:true
		}
	},
	methods:{
		confirm(){
			let feedBack = this.value
			this.$emit('confiem',feedBack)
		},
		cancel(){
			let showModal = this.show
			this.$emit('alert',showModal)
		}
	}
};
</script>

<style scoped>
	.testAuto{
		width: 70vw;
		height: 20vh;
		border: 1px solid #959595;
		margin: auto;
		border-radius: 10px;
		margin-bottom: -3vh;
	}
</style>